Added file extensions, option for ignoring certain directories and moved...

... file path to command-line argument (was working directory, previously)