Changed body to getBody and made it a method, #877.
fixed failing tests and added docs