cleanup of main.cpp
added some getters and setters for the parameters