added method getFreeSpace, listFiles and getName