further cleansing - removed most uses of unsigned ints, removed list reversers