Refactored 1 as a oneliner, redid 2  and 5 for reboot, added 8
Standardized everything so that there are none of those pesky newlines at the end of files.