Updating Doc section and Fixing bug.

An undefined variable bug was fixed and a new file was added to the
documentation section.