initial commit
added -e and -d flags