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