Cleaned up example.py considerably.
Fixed some typos and style errors.
Cleaned up typos and improved style in entity_manager.py