Add definitions for multiple platforms (only building on Mac OS X for now)
Now allows for a scan and a plot, which can be done sequentially or separately. Scans can be saved to a file, and plots can be generated to an image file or shown in a window.