Handle numbers starting with a dot
Simplify main loop error handling