functionsmain: We don't need root for everything...

-Spent sometime trying to see just what needed to be root
and what didn't.
Some cosmetic changes...