Touch event filtering refactored to get more than just X and Y events. Events stored in memory during recording and written on the disk when recording is stopped.