Refactor parameter names and implement generic object to document parser.