really cleaned up templets and added tests....templets rely on jquery right now that may change