Added code for update.
Cleanup apt-file code.