Fixed -j specs, reordered options
Added support for -k option
Simplified logic for -m check
Added user iD as valid email address; fixed event bug for -k