Tidy up lonely parens
Purge trailing whitespace
Warn when endpoint is unset