code cleanup, added commentary, updated ReadMe