minor changes - removed debug code from main.cpp