Create magwater.cpp

My quick adapted version of the example code to use the faster reads