improve BasicDemo, better mouse handling, add colors to drawing