removed a define. not necessary for this project
updated function documentation, missed a variable