Switched MVar for caches to IORef
Cleaned up whitespace/commented out code