added a constants file, filled out most of the EntityManager functions (still untested)