fixing docs, fix variable names