Added intput functions and input file