Added CocoClass as superclass to Simulator and updated destroy method.

Related to issue #495