added makeDir and modified delete

- delete now also handles directories as well