Add more documentation to readme. Clean up a bit of the base level code.