Cleaned up a bunch of stuff for prog5, I'm still getting minor errors
though

Errors on the order of +/- 1 count on one word in about 1 in 10 runs,
but still, its frustrating, it needs to be exact.