Added entity manager
Added remaining functions and documentation