Made changes based on feedback from pull request

* Removed console.log statements
* Fix for not returning an error from redis_client.incrementExpiringKey method
* Fixed formatting of if clause