Fixed problems with algorithm and added rendering

- Fixed an issue where negative gradients could occur when few points were
  used for fitting planes
- Changed minimum points for a cluster to discourage overfitting
- Added rendering support to output a movie