a lifetable function for demography. Optional smoothing, different manners of estimating a(x), single and abridged ages accepted