Add unit test for line numbering.
Allow file arguments to be processed.
fixes #2