some additions for paranthesis auto compeltion and smart indentation