add write (save) and correlation samples
Merge pull request #3 from sequenceiq/master

add write (save) and correlation samples