fixed parsing bug and made example compilation optional

the parser required any script to start with new line