Code cleanup, Fixes

Cleaned up the code a bit. Fail gracefully if the interface found not working properly (venet0 in my OpenVZ instance was detected but no such interface exists/if configured)