add -i and -d flags
add usage in readme