Fixed some documentation typos and Pretty JSON Encode for PHP 5.4+ users