Simplified Main.prepare()

Basically pushed functionality into different methods in CommandInstance