Adding in coments and fixing bug with logic where bad luck could leave you with no random line output