Updated Entity class
Added some documentation for the Entity class