Using sampled length in timestamps
Closes #143
Merging RTP fixes