Added namespace to IMTemplate. Fixed editor window bugs.