Removed redundant call to init.
Fixed up debug support.
Added debug output on startup if -debug.