cleaned up some code. changed notes. updated readme.