Added ability to unload resources from the file system
- Minor code changes