related to issue #144: eliminate warnings and notice. code cleanup
accept pull request #16: Display error if import module has an error