Remove cruft in bindings.
More doc fixes.
Add simple tests for inner product functions.