This software is provided 'as-is', without any express or implied warranty, including fitness for a particular purpose.  In no event will the author(s) be held liable for any loss of data or revenue, or any other direct or indirect damage caused by this software.

 Permission is granted to anyone to use this software for any purpose excluding commercial applications.  Permission is also granted to redistribute this software freely, subject to the following restrictions:

 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. 
 2. If this software is used in a free product, an acknowledgment in the product documentation is required.  
 3. If this software is used in a product that is not free, revenue should be shared in a manner agreed to by the author(s).
 4. This notice may not be removed or altered from any distribution.