Fix and add comments
back to getManager method to get doctrine entity manager
enable auto-completion for entity name