Ability to view n download file

Also cleaned up on the index for files and file field generation. TODO:
updating of files.