changed main.cpp to work without being connected

requires user to enter data twice for some reason.