Commented and fixed PSWebServiceLibrary.php

Added missing @throws and @return + code inspection fixes.