Added support for plain text files as input. A little more work to do there, empty lines are disregarded.