move extend code outside the ready block
Update README