cleaned up and updated documentation