Fixed tests. Now they cover 100% of the code
Added descriptive phpdoc comments