progress with types
reworked most of the custom types.
still need to clean up cruft.
removing debug stuff. fixing ints
Merge pull request #18 from wfreeman/refactor_types

Refactor types