Clean up tests and add documentation
Document library licensing