added median averaging for even better and smooth voltage/amperage readings