adds smarter comment function and key bindings