Cleanup warnings and update documentation.