Switch to improved snippet manager using textmate snippet syntax. Refactoring for local function names. Improve code validation.