rename fold to foldLeft
remove takeWhileWithIndex
use Tuple instead of Timestamped
update completeness test