update min/max usage to latest rustc
derive Show for most types
Merge pull request #8 from rlane/rust-update

update min/max usage to latest rustc