Updated: Bugfix for duplicate php function support code being run+

Updated: Bugfix for duplicate php function support code being run. Documentation improvements.