Added exceptions on reading file and more.
Added exceptions on reading file and more.

Ensured that file is closed after reading its contents. Need to do the same for update_target
nkokkos/vws,c0m3tx/vws