I think there is a bug in the 'off' function (though I haven't had the chance to run it yet).
# Read from the array, and remove files from /etc/hosts
for site in $*; do
sed -i '' "/127.0.0.1 $host/d" $hosts
done
it should be $site instead of $host (the latter is never referenced elsewhere in the file)