Improved Resource management

Improved Log Class