change api to better access internals
work toward issue #2
Moved normalised initialisation function b/c of missing prototype
fixed uninitialized variable
removed redundant test
altered build for reliability
added extra userdata parameter to callback
release preparation
minor corrections and license block
added tests and test data
fixed copyright year