Fix tests and add API reference
1.0.1