code cleanup, added info to readme