updated javadocs
minor refactoring
updating default config, building database classes