added functions for: getting paths in a directory, checking if a file exists, printing a file, and appending extensions