Fixed a few bugs, starting on shaders
Merge pull request #1 from Tim-Snow/master

Fixed a few bugs, starting on shaders