added writeup, fixed operators, tests pass in all dimensions