Add sections to docs
Fix typo
Function literals were missing parameter names

When we write a function literal we weren't including the parameter
names.  Which was fine, until we started copying the function body too
...