Get operation mode from config file

I've changed also the switch op_code case a little - nothing too
dramatic