update/add comments for readability
fix a bug: sv2spark.sh makes garbage file named pattern.txt at working folder.
fix the conflict state