split up main should script into multiple smaller ones
Reorganised, included a makefile
added some more info to readme file