adding better parsing, fixed bug in parsing first if statement in a file, fixed bug with paren scope tracking, adding validation for paren and bracket scope