bugfix in barplot
Errors can now be raised; options can be set (issue #3)