added some javadoc and finished thesis (almost)