Docs and comments improvements.
JSHint comments corrections in tests.
More API docs corrections.