Refactored function
Started listNetworks; need to figure out what info to return in objects.