Redefine attribute access in model
Add functions to check if file exists and to get files
Add model tests