Improved error handling on JSON $_REQUEST and added category filtering and post limit, updated readme with example