removed unneeded array copy operation
write will now notify the user on stderr if a field was dropped
use the actual number of written fields on write, intsead of the number of known fields