Fixed some issues with read_input class, seems to compile and run