Partially fixed issue #9 (window can now be properly shrinked).
Fixed another bug (contacts not properly removed from arraylist)