Add @returns info for functions outside class methods

This is a fix for #16