add read support for floats, closes #6