Fix documentation and variable names