I didn't get all the way through, and it wasn't fully explained well, but I figured out most of what was needed. Here is my playthrough: