Add build script into the repo, and clean it up
Merge pull request #307 from mistio/build_script

Add build script into the repo, and clean it up