prepare_input_data function

Prepare Input Data: Coerce to data.frame and (optionally) normalize values