Adding file tests
Adding filepath sanitation
Adding browsing
Fixing bug where reponse might be data but not text.