Actual file handling is missing and some clean-up routines as well. Compiles and runs but doesn't do much.