Cat template

Fixes #10 and hopefully #14