Regarding indentation: we have `contrib/indent.pl` which requires Emacs to be installed and reindents in a standard way.