Major refactor of lodev functions.
Changed the names of various functions and variables to be more descriptive.
Rewrote the implementation of rendering the screen to one that should be less faulty.
Rewrote implmentation of thread initialization to one that is more modular and scalable.