added C template, just use -c, and added command line arguments to template