Added filesys and updated file-opening syntax