Added open port, log to file and first tests