Fix a bug (generate NUM_OF_CORE pieces)
Fix typos in  README