Removed entityManager and created javadoc