moved functions for consistency/clarity
moved functions for consistency/clarity
less friction when sourcing files
minor tweaks
account for tabs, not just spaces
simplified agent scripts