Commented and fixed PSWebServiceLibrary.php

Added missing @return and @throws + code fixes.