Fixed issue with using '.' as a filepath. Some refactoring to improve clarity. Preliminary implementation of command line arguments, currently only -a for showing hidden files.