logdata functions added. Printing vx to terminal.