Revert "Some variables' type changed from int to unsigned int. (closing #89 and #102)" This reverts commit 44290eb817f6f5ccb1137372f115d4b7633f0cb3.