backing out the erroneous logging
correcting docs
removing the unused parameters
cleaning up variable names to not use the underscore prefix
explicitly declaring properties
removing unused variables and properties;
removing unused variables and properties from the cleanup functions

found courtesy of https://scrutinizer-ci.com/