Added debugger.

Added destroy and update methods to entities.