Added functions for reading and writing analysis details to disc. Turned SQL parameters to camelCaps for consistency. Added running of multiple analyses.