fixed issue #2
err rep -1
corrected phpdoc