Added template source file and compile script