Add license.
Check SAM file format before pipeline.
Check dependent programs more carefully
Add checkpointing in fold.