added license and also {bgc1} and {bgc2} replacement in templates