Code cleanup
Added status to the json output. Fixed a typo