Added code descriptions

Added code descriptions to the page for later reference. Also changed
the name of the sample code page for future use.
Minor code change

ugly code mistake removed