Factored layout into functions

Factored layout into multiple methods; need to do a bit more work
making sure everything is going the right way.
Chmod changery

a+rx — for some reason it keeps changing.