cleaning up some code. updating readme.