extended export functionality to support headers, todo: template the header function for uniform & vertex attributes