added javadoc and finished thesis (almost)