Support for @method, @func and @function. fixes #65