Added hiding mouse when inactive + some impr.