fixed files for Linux. added functional directory class