Cleaning warnings

Changing deprecated code from Mirror to use new methods. This change remove some warnings like imports, supresswarns too.

This pull request must merged after #13