moved code from for loop into a function
setting up tests for snapshot.py
test for all of snapshot except the remove_line function
improved comments on snapshot.py