Made it so there is now a maximum for the file size that can be written, and this is configurable.
fixed #53