Added some documentation and changed the README.