fix ip detector, arg parsing, update docs