Fix minor bug in cache file.
Implement terminal program to retrieve info about ip addresses and ports.