Another bunch of unsigned vs signed comparison
This was most probably a bug. Fixing.
Removing unused varaibles
Removing unused variable 'hi' from this function
Fixing spacing and newline issues
Fixing signed vs unsigned issues

Here I had to dive a bit deeper and check/fix function return signatures a
bit more.