Flashlight Features Explained

What do all those features mean? IP rating, beam distance, etc.