Added more description on the test and program.
Removed some unsued function.