Fixed minor bugs

Fixed bug in example distribution.
Added check against argument type in run method.