final docs and code