Fixed crash for oddly-formatted times & rooms, multiple teachers. Organized part of the algorithm into functions. Script parses and outputs correctly for all current course data.