Improved Logger and changed some methods to others classes.