Add point and line mode, mouse control

Add point and line mode, mouse control, almost finished