Improved PHPDoc for better IDE support and Fixed a typo in __toString.