#501 clean code according to current code-checker version

The only exception which are not following Moodle-guidlines (according to codechecker) are inherited/overwritten methods and class-members from Quickform, etc.
update file headers and file doctype-comments
#5 remove unnecessary methods/functions