Typically, to gain lean body mass one needs to have some degree of caloric surplus, or at the very least, not be in a significant deficit. This is especially true when looking to add muscle mass. It is certainly possible to gain muscle mass on a ketogenic diet. For most individuals this would require consuming adequate protein (while still remaining in ketosis), enough calories to support growth, sufficient electrolytes to support muscle function, as well as incorporating progressive resistance training. The type and volume of resistance exercise needed to add lean body mass will be very dependent on the individual and their age, training status, health status, etc. Therefore, the answer to this question can become quite nuanced, but in simple terms, yes, it is very possible to gain lean body mass on a ketogenic diet while still taking advantage of the health promoting effects this way of eating provides.
A: The most common ways to track your carbs is through MyFitnessPal and their mobile app. You cannot track net carbs on the app, although you can track your total carb intake and your total fiber intake. To get your net carbs, just subtract your total fiber intake from your total carb intake. I have written an article on How to Track Carbs on MyFitnessPal.
If you’re serious about maximizing the benefits of ketosis, then forego coconut oil, MCT liquid oil, olive oil, etc. and instead use Brain Octane as your oil of choice for recipes like bulletproof coffee, or in teas, salad dressings, or as a sushi or entrée flavor enhancer. For a slightly less expensive, but not quite as effective form of MCT, use XCT oil.

When you eat less than 50 grams of carbs a day, your body eventually runs out of fuel (blood sugar) it can use quickly. This typically takes 3 to 4 days. Then you’ll start to break down protein and fat for energy, which can make you lose weight. This is called ketosis. It's important to note that the ketogenic diet is a short term diet that's focussed on weight loss rather than the pursuit of health benefits. 
There are many ways in which epilepsy occurs. Examples of pathological physiology include: unusual excitatory connections within the neuronal network of the brain; abnormal neuron structure leading to altered current flow; decreased inhibitory neurotransmitter synthesis; ineffective receptors for inhibitory neurotransmitters; insufficient breakdown of excitatory neurotransmitters leading to excess; immature synapse development; and impaired function of ionic channels.[7]
You state that many athletes and very active people could benefit from 100-200g of carbs a day, and be back in ketosis in a few hours. Any particulars on which kind of activities or say how long/many training sessions would benefit from this to balance hormones. I train mma 3-4 days a week and also do lots of hiit and strength training as well. Just trying to see if this is a situation where i would benefit from your suggestions. Thanks!
The day before admission to hospital, the proportion of carbohydrate in the diet may be decreased and the patient begins fasting after his or her evening meal.[19] On admission, only calorie- and caffeine-free fluids[37] are allowed until dinner, which consists of "eggnog"[Note 8] restricted to one-third of the typical calories for a meal. The following breakfast and lunch are similar, and on the second day, the "eggnog" dinner is increased to two-thirds of a typical meal's caloric content. By the third day, dinner contains the full calorie quota and is a standard ketogenic meal (not "eggnog"). After a ketogenic breakfast on the fourth day, the patient is discharged. Where possible, the patient's current medicines are changed to carbohydrate-free formulations.[19]
The nerve impulse is characterised by a great influx of sodium ions through channels in the neuron's cell membrane followed by an efflux of potassium ions through other channels. The neuron is unable to fire again for a short time (known as the refractory period), which is mediated by another potassium channel. The flow through these ion channels is governed by a "gate" which is opened by either a voltage change or a chemical messenger known as a ligand (such as a neurotransmitter). These channels are another target for anticonvulsant drugs.[7]