Added various diagnostics. First trial run. Weird memory error possibly in
initialConditions().