Fixed inserting tags to almost work. Also changed auto indent to ignor end tags