added new templates and started on new improved grid algorithm