Better error detection
Fix line numbers for comments

Crucible wants and reports them counting from 1, IDEA - from 0.