add description for some class for debug, fix the bug of error file writing