Refactored int-float conversions for io. Closes #43