Add code to track berth statistics. Does not work yet.
Now correctly generates berth statistics.
Merge branch 'stats'