Added syntax checking, snippet functionality