Fixed how we search for functions.
These are valid:
var foo = function()
foo.bar = function()
function foo()

Fixed how we add params to the function.
Fixed how we add @return, @private, @param to a doc.