minor debug print change
Fixed dot product for gl ders
removed redundant variables