Better Medline Parser

Rewrote the Medline parser to make it cleaner and easier to read. It's also a little faster than the old version (~20% faster for parsing 1 million records).