Added modem power toggling

And other small changes tot eh 2 programs