moved input functions into their own file.

Maybe not the best idea, but we'll find out