Added retrain and predict methods and other stuff.

In detail:
* Now using compression when calling writeHDF5.
* Added retrain and predict methods.
* Added method to get the path to cached datasets.
* reshape_labels was called even if there were no labels in the dataset. This is fixed now.