Updated Entity and Component classes

Added a few properties to each class and added code to attach components
to entities.