Added a couple of comments where I'm pretty sure I could math better but it's good enough for right now.
Stars disappearing off the left now appear on the right
Stars going off left/right edges now appear at the opposite edge with the appropriate offset to avoid banding together at high speeds (like 20000 pixels/sec)