Added error handling on module import. Added list_modules function.