use getopt for options parsing
update readme for options parsing