Added Smartparens support

And I did some small changes to other stuff.