added build script, some comments and a couple of tests
testing build script
Changed license to MIT
added code documentation, removed unused functions