Updated host.py to check that files are properly being added to arrays