added fast mode for classification and regression, updated examples