Many Bugs Fixed.