Refactored shader source read code.
Factored out a lot of unnecessary code.