Add a structure for the duration.
Add function to convert fractional to duration.
Remove warnings.