Reorganized init code in Main
Fixed a small print error in debug

Signed-off-by: sjdodge123 <sjdodge123@github.com>