Parameters switched to const ref where missing and removed the debug-flag from pro-file