Moved logic to class
Removed dependency on wmctrl
Checking if xprop available