added auto indent, and auto char pairing