Restructuring

Restructured for easier commanline usage and added a rebuild.bat for
commandline automation.