cleaned up the dipai.txt file, fixed bugs.