additions to readme, cleanup code