Added support for the PATCH method
Whitespace cleanup
Added missing license header