Minor changes to -orth_out-

Made a series of mostly minor changes to -orth_out-, including restyling the code. I also found a couple of more serious issues.