Creates a formatted header based on some input vars