Added getopts support.
Added debug mode.
Added multi-host parameter/argument support.