Added cache cleaning
Added correct error for empty directory
Merge branch 'master' of github.com:paullouisageneau/TeapotNet