Major update, new formats and analysis code structure