fix position of context menu
remove some global variables
fix #96
temporary color defaults for matrix module (#117)