read file input and print everything
removed unneeded stuff