Program to dynamically generate sequence diagrams based on code