Cleaning up code

Updating docs