Final version of all code and conclusions