updates header and source templates