- Removed unused variables.
- Added resetting pool of files to inital state after file system has been released.