Added comments to thread.php
Adding revisions per code review comments