fixing typos and adding check for required --host option