Added sampler, fixed template project