More documentation, more tests