Integrate functions from previous version
Edit scope when binding mouse events
Remove old comments