problems when trying to import files from the code subdirectory. I also tried to rearange some code so that book_format does not need to be imported if you are not running in a Jupyter Notebook.