Fix lexer, fix curl files.
Fix stuff to match examples

strangely, examples look wrong