Changed readfile function , still only getting a black screen to display .