Interpreter validates opening and closing brackets before running program. Fixes #15