Run formatter and clean up
Runs the formatter, and also changes some positional parameters to @required
named parameters.
Some parameters are made optional, purely by the usage of being passed as null
before. Should actually be based on API documentation.