NEED HELP! NAO!!! (Rotation code wise)

after many great help from all of the forum members *COUGH*
anyways...
I MADE IT WORK! but it needs clean up. it rotates yes
but it would be nice at least that there would be no black dots randomly...
here is the file. click the rotate button to rotate
soo... PLEASE HELP ME! it's very rare I need help anyway <,,<
I will give points to the one that cleans it up :O
and to sgt.sparky... I know you were working on something like this, well... D: nothing else to say lol
anyways...
I MADE IT WORK! but it needs clean up. it rotates yes

here is the file. click the rotate button to rotate

soo... PLEASE HELP ME! it's very rare I need help anyway <,,<
I will give points to the one that cleans it up :O
and to sgt.sparky... I know you were working on something like this, well... D: nothing else to say lol