generate header with version information