Prepared use of generic datasets

Added switch to loadLabels and loadData to allow for user
implementations of the respective loading procedures. This will allow
the usage of individual datasets.