tidy code, update readme

Updated Readme, and general code indentation.