receives data over serial connection, displays data and saves to txt file