Moved simulation initialization stuff to Tracpy class.

Moved initialization stuff from the beginning part of run.run() to Tracpy.prepareForSimulation(). Both test files run properly.