Updated behavior to support class/module methods.
Fixed bugs in behavior and updated the associated documentation