use entire random range
move pending decicion to remove_expired
move _update_link_quality to it's own function
node type is never used, remove it
print send and dropped packets
set loss properly
try to add more weight to old metrics