Fixed bug
Now handles empty lines and comments with a # prepended to the line