Fixed a few bugs and typos
Added key attribute to render task
Added 500 status code, xml output