split core life calculation into borders + internals; added test_reference.dat.txt.