Separate .c and .h template files

Also, some stupid example files are included in the templates directory,
to illustrate he use.