fix #003

Added a new entity module that contains an Entity class, and a utility
for instanciating entity-objects.