Fix truncation and field size. Closes #10 and closes #12