Added $body variable (minimal performance improvement) and comment docs, renamed variables to camelCase