Add submitBash function

Also moved around some stuff/etc