Install smartparens.
Some refactor.