input, clean and tidy data