Documentation PhpDoc

Start to cleanup the documentation. With a clean documenation it is easier to find logical bugs, because the IDE highlight the incorrect usage of variables and methods...