class parser, reworked labeled function parameter to work with class functions