line parser works
State machine mostly working, counts are off though