Added -e flag to check extended logs and -h help prompt