remove unused variable 'factor'.
Relaced specific format specifier %ld with generic specifier %u.
Trivial preamble changes.
Merge branch 'master' of http://github.com/razzlefratz/MotleyTools