added control-enter newline hack
modified some snippets