Remove leftover test code.
Add missing error handling.
Add view counter.
Add port number to config file.