Small fix in promise reject.
Deleted unnecessary variables.
Shaderprograms is now internal.
Hidden more variables.