Main.cpp: added const's where necessary