Fix documentation, add tests