Add notes file generation function