makefile fixes, readme updates
convert to getopt()