Removed extraneous includes.
Always convert the ruling number to an int and error if it is not a number.
Have the ruling output tell which ruling of the total number of rulings it is.
Fixed off by one errors in the ruling numbers.