Email Record: Solving the KP hierarchy by gauge transformations