Added custom comments, proper global defs, auto comment style detection, speed improvements, chaining.