Set shell-script mode.
Minor formatting, cleanup.