Update documentation and unit tests for TTL/PTTL

Addresses #358
Merge branch 'hotfix/ttl_return'
Merge branch 'upstream/master'