os temp folder used for tests
file method refactored
dir method refactoring
cwd bugfix
readme update