template scanner first draft
added scanner and parser code for comments, sripts and text