add sourceTs function. fix documentation.