lots of misc cleanup in PureIOT

Signed-off-by: Ricky Elrod <ricky@elrod.me>