finished up calculation of verse reference using temp variables.
removed unnecessary end
changed nil to empty. empty arrays are not nil
finally figured out that ruby doesn't have an increment operator. headdesk