fix bug

modify debug function of derived class
remove system("pause")
Merge pull request #14 from Queequeg92/master

modify debug function of derived class
Thx for contribution~