Testing lib for some files. also fixed the grab the snapshots. However, that only gives us half of the story. There was some cleanup of repeated code. Turned into a function for better error handling and maintenance.