Improvements to the particle editor.

This resolves issue #51.