editthread templatized, and misc bugs fixed