fix doc formatting and rename update param to "data"