Added class diagrams and global variables to classes