updated tostrings for entity and added additional constructor for entity