Updated Build script

Also made a tiny change to main class and documented build.properties.