Added log messages if a uniform or attribute could not be found
Use pointers instead of references.
Allow assignment again.