add noext and directory options, fix a bug or two
add readme