Added begin and end arguments to ResultStream
- Removed key argument and added begin and end instead
- Added initialisation of data array in Ts.__init__