general code cleanup
updateFrontmatter function no longer handles save()