Reworked Logger and LogHelper

Added the option to use custom logger
Better handling of objects in Logger