added distance getter
added method to restart module
fixed NullPointer, when mouse does not moved since startup