Minor refactoring

Comments added and authentication service moved to persistence package.
Fixed a spelling error in package and class names.