fixing comment polling, console logging and debugging.