1. comment some main functions
2. fix some WARNING MSG