adjust classgenerator, add parameter class functions + test