update getData and preprocess to use dataframe instead of recarray (#8)