changed flag handling and added M-flag
minor bugfix
bugfix: isset is not my friend
Merge pull request #21 from wick-ed/master

changed flag handling and added M-flag