Added build script
Commented and refactored a bit
Minor text edit