Add comments for some class
Fix the pid bug