added "-index" option
updated readme
fixed locking issue