code review (threat and threatManager) - comments and optimization