Change default parameter type value to PARAM_BODY
add comments to code, trim whitespace
attempt to deserialize requests when content-type set to application/octet-stream