updated javadoc, corrected typo
updated persistence.xml template
code cleanup, added javadoc, fix on map persistedClasses