Added debugging/release #if and initWindow method

Wanted to pull out window initialization into its own method.
Experimenting with source groups