commit

Fixing some api comments and adding tests.