changes before moving functions to class.
started to write tests, to program the module on a solid fundament with PHPUnit.