corrected units in main.cpp but errors remain