Code cleanup and README

Code cleanup (mainly comments) and creation of README