\LinesNumbered and graphicx bugs fixed. (Suggested by @darvasd.) Output file directory created.