Fix warnings about unused values
Docs + interface cleanups + refactoring