Reorganized the code.
Added test suite.
The magic now raises errors if requested variables cannot be loaded or saved.
Renamed test.ipynb in example.ipynb.
Added test notebook.
Moved the conditions to a function.
Added unit tests for conditions.
Fixed bugs in cache.
Added unit test for cache function.
Updated example and test notebooks.