Have fixed a lot of things and need to add file I/O