updated the diff with a fix for the flattening issue and new formatting from Uncle Entity on the blenderartists forum.