finalized addfile functionality. This will be the set of functionalitities for release 1.0.0.