adds SCAN
improves CSCAN, adds first pygame tests