doc fix
adding alternate protocol_id for future use
creating get_chdir()
moving environment generation into method
moved command setup into method
adding some TODOs, updating uid/gid check