Organized code and added a build script.