Moved resources to new namespace.
Moved resource creation to Sim.
Code cleanup.