tests added
phpdocs added