formatting
cleaned up some code and updated readme