Adds syntax highlighting and sync selection
Fixes a few things