Bug fixes. Comments. Work on getting last segment duration calculated appropriately.