Multiple bug fixes, internal documentation started

The following bug fixes/changes have been implemented:
1.) Fixed a bug in the XML GUI that was creating fatal errors when
called from the admin page
2.) Fixed bugs in the functions that parse SRAI, SR and CONDITION tags
3.) Corrected a bug where certain admin pages didn't display if a new
chatbot was created but not saved.
4.) Began the process of adding internal documentation to the script,
which will allow for later
automatic generation of external documentation.
5.) Refactored and/or removed some duplicate functions within the admin
pages, to avoid conflicts
with the generation of the above mentioned external documentation.