Fixed getMaxHeight().
Fixed destructor warning.
Removed some unnecessary new lines in log messages.