added a few extra comments to ruby code