Slight speed up by calculating r^3 only once
Removal of extraneous commented lines of code that were just clutter
Changed the output format to be CSV, for easy import into a spreadsheet.
Merged conflict
Reduced to the required 2D problem