Mostly cosmetic changes of shell files, formatting, minor changes, fixes and typos.