added file1 ocumentation
added update functionality and refactorized some base functions