added example in ipython notebook and some minor changes to classify_regions

outstanding issue: class_weights