Moved formatDuration to a separate 'datetime-functions' source file
Minor edits