fun.extractBody
cleaning up
starting to add API documentation