Minor fixes
Added a simple debug console application