Added rotating writes

Rotates spool file to write to for both points and contents whenever the number of writes written to each respective file exceeds MAX_SPOOL_FILE_SIZE, currently set to 16MB.