Code cleanup. Added functionality: trackloss filtering and eye select error correction