Changes for v1.3-beta.

- Rewrote in plain C to reduce the footprint and memory usage. (suggested by Andrey Unis)
- Simplified the overall code base to make it more readable and maintainable.
- Changed the license from 3-clause to 2-clause BSD License.