Defvar, consistency, documentation.

- Renamed functions object to namespace, because that's what it is.
- Made code a little more consistent.
- Added defvar command to create variables in the namespace.
- Updated documentation for SExpressionClose to detail error output.