modified uptime file opening and confirmed unit testing