add comments, correct calculations of life