Added new function to check if there is an error
File is created to perform "internet info" functions