Moved feature transformations to separate function. Added valiadtion module.