Added repeat tracking and exit code
Larson Scanner fully implemented