Added preprocessing to the machine learning input data

Still need to figure out which algorithm is best for predictoin