Move screen functions to separate file. Add IO read/write functions