Fix bug: was calculating packetloss using only current stats, but should use previous stats too.
Add missing license.