added correct license
we don't need to remember this stuff
fixed some types to be more portable
general cleanup