hipLog code cleanup + improved