added spatial to data_input.r and updated man