api to generate heatmaps now more stable
added some mesh functions to find max values
removed old arraymax function file (moved into mesh module). tuned app.js to spit out loads of heatmaps
app.js now intelligently chooses which dir to store heatmaps in based on config.meshSize