fix #32: implement '-m' and '-em' arguments
Merge pull request #33 from scrm/fix_issue_32

implement '-m' and '-em' arguments