Hello Eva,
If you want make the fields not required you have to commet the line code which :
$mform->addRule($field, get_string($stringid), 'required', null, 'client');
I don't know who it is at moodle 2.2 once i am using 3.0 but in my case i have done this in some field and it workBest,
Nikolaos