fixed some comments in hook.js & made style changes