Added details to readme; minor code cleanup