removing unused variables. stick to underscore-less naming conventions. correct debug logs, log contextual errors.

removing unused variables. 
stick to underscore-less naming conventions. 
correct debug logs, log contextual errors.