Function registraion handled by the constructor.

	- Updated the constructor to handle the php function registration. All we have to do now is import the class file.
	- Modified the example to use this new probably easier way.