cleaned up and added javadocs to schemaservice