implement Command.prototype.name()
Merge pull request #264 from tonylukasavage/name_func

implement Command.prototype.name()