fixed the year in the file header

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>

removed almost all transmutes. Refactored to safe interfaces. Fixed up tests.

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>