Add const.h
Some cleanup
Add mouse callbacks