The function was wrong and then you are not creating the r. Therefore the library didn't compile, and if it did compile, it would not work.
Don't think this the wrong way, but sometimes I feel like you don't test your libraries properly. This one, the projectile system and the lighnting system...I could spot major errors in each very quickly.
I'm only saying this because if you test your systems correctly, you can get them approved sooner