Changed problem file parsing to use generator

It felt odd defining an empty problemLines list.