Deleted several unused files, added javadoc.