Added listFiles() (no functionality)
added looping and quitting features