Move version_check to index.cpp
Convert digest to string early on for quicker storage to index
Add functionality to keep track of file changes in index