Style changes and only check cancellationDate of the last transaction
Expand documentation