Changed the meaning of the custom-auth parameter (from specifying username & pw to specifying an app name). Also some changes to output.