Clarify and improve documentation