added the basic template parser, and output buffer, and a function wrapper to execute it. A variable 'local scope' was added