There are many different types of folding bicycles and folding electric bicycles. Each one has a little different system but the basics seem to be the same.
The folding process is very simple. You just need to hold the two-seat bars together and slide down, release the handlebars and pull up on the handle and you are done. The folding process is complete.
To unfold you lift the seat and pull up the two bars, then kick back the tire while pushing down on the handle. You are done. Make sure before you ride to pull up the handlebars and lock the seat into the proper position.
Pedal assisted riding is a great way to enjoy an electric bicycle. During the pedal assist riding, there is no need to turn off the power switch, you may keep the switch on. This will feel just like riding a normal bicycle.
When you quit pedaling the power will continue to assist in a short glide, then continue to pedal again. While riding you can turn off the power switch and do all the work yourself, when you get tired just turn the switch back on.