Add optparse to handle arguments
Add ll_type value to determine logline type
Fix bug in input_voltage and input_current reading

input_voltage stored the current value and input_current stored the
voltage value.