Corrected Issue #1

Corrected the issue created in Issue #1. Moved the Spawn and Set Spawn
commands and all related backend to its own class.