Removed redundant build script
Restructured build script.
Fixed buffer size and for sanity's sake freeing given memory correctly now.
Restructure of project