Fixes API call parameters to match the new guh core and unifies the use of whitespace at the end of lines and files.