Training over one template row is working.

Training over one template row is working. Fixes #4