Added Shader type, also added additional comments.
Removed readCg function, added writeCG instead. Also added QMap in private variables.