Added JSDoc to log module