refine TocHW4
add test.sh
modify output format
modify test format
add sample_output