Major cosmetic fix to remove compile warnings. Increased stability for large systems by declaring positive integers as unsigned ints.