added a readme and added some comments to main program