added bracket matching, and autoCloseBracket