updated blog and r file