Hello kevinberchelmann,
I can help you with part of this. You'll want to go to Control panel/Power options. On the left side select Choose what closing the lid does. You'll have two categories - When I press the power button and When I close the lid (there are other settings you can change in this screen too).
Set them for both battery and plugged in where you want them, then select Save changes at the bottom.