Documentation of the cache methods and classes + a couple of fixes

Signed-off-by: emanuele <emanuele45@gmail.com>
Add more dirs to the test for syntax errors

Signed-off-by: emanuele <emanuele45@gmail.com>