Added listFiles and fileHistory functions