Added error message when module name is not specified
It look not very good, so it is temporary decision. More clever error handling is needed (with resources
deallocation) everywhere