fixed some embarrassing syntax and semantic mistakes
fixed bug in perspective introduced by contribution made by learnopengles