Formatted code slightly
Might have fixed not working above 999,999,999
Did other things