Ignored *~
Added error checking.
Added codes of section 6.1.
Added codes for section 6.2.