When a player collects credits this mechanical device rotates coins into the coin tray A coin diverter is used to redirect excess coins into a drop bucket or drop box when a certain preset coin capacity is reached

Could you correct the punctuation please?
When a player collects credits this mechanical device rotates coins into the coin tray. A coin diverter is used to redirect excess coins into a drop bucket, or drop box when a certain preset coin capacity is reached.