Restructured Exception classes
Improved the Cache class