added some comments
created two new classes
outsourced some code of graph mouse plugin for better overview