Fixed 'NULL' bug.
Better memory management.
Added license file, headers and .gitignore.
Updated makefile. Use 'make STATIC=1' to statically link MySQL libraries.
Changed file structure.
Code clean-up.