Fix: documentation refs, headers, indentation and code blocks