Avoid tabs in C source
Implement copyup on read feature
Comment out excessive debug output on each copyup
Factor some repeating blocks into functions