Increase test coverage, change default configuration, update api doc