added main class ir mouse
refactor