cleaned up Hexloginform and included comments