Completed reporting of bad shares in addition to valid shares. Added a fair bit of commenting to the main server loop for clarity.