added simple paste action support and some lexer improvements