generalize grep graph function names, add weeklies and milestones code