added some comments
Updated readme and removed some obsolete code