1st draft of Build script.
Code cleanup.