fix importnym, added some more checks
Merge pull request #145 from da2ce7/master

Fix for importnym