added the checkpoint boolean on valueToSequenceFile
incorporated the changes from pull request #243. closes #243