updated methods

added the scanning overview to the methods section
fixed formating in the encoding section: changing sections to
subsections