cleaned up some

-still need to refactor the document load method
-fix some indentation