fix extraction of unsigned integers
- add method to compute length on chunk in seconds
- add use of getTime() to example