Cleaning up code
Better error handling
Using libwnck3 (see issue #6)