Bug fixes

A file wasn't closing and serial versions were not getting sent to the
file