Changed Fitfunction to Gauss
Bugfixes in Viewer.cpp