New functions to cast to signed integers
Convert example to unit test case
Add copyright headers
Extract data handling from core and new tests