clean up unnecessary variables
add space in usage message and eliminate potentially blocking read