Index: /FCKeditor/trunk/fckeditor.php
===================================================================
--- /FCKeditor/trunk/fckeditor.php	(revision 1576)
+++ /FCKeditor/trunk/fckeditor.php	(revision 1577)
@@ -26,4 +26,10 @@
  */
 
+/**
+ * Check if browser is compatible with FCKeditor.
+ * Return true if is compatible.
+ *
+ * @return boolean
+ */
 function FCKeditor_IsCompatibleBrowser()
 {
Index: /FCKeditor/trunk/fckeditor_php4.php
===================================================================
--- /FCKeditor/trunk/fckeditor_php4.php	(revision 1576)
+++ /FCKeditor/trunk/fckeditor_php4.php	(revision 1577)
@@ -28,13 +28,58 @@
 class FCKeditor
 {
+	/**
+	 * Name of the FCKeditor instance
+	 *
+	 * @access protected
+	 * @var string
+	 */
 	var $InstanceName ;
+	/**
+	 * Path to FCKeditor relative to the document root
+	 *
+	 * @var string
+	 */
 	var $BasePath ;
+	/**
+	 * Width of the FCKeditor
+	 * Examples: 100%, 600
+	 *
+	 * @var mixed
+	 */
 	var $Width ;
+	/**
+	 * Height of the FCKeditor
+	 * Examples: 400, 50%
+	 *
+	 * @var mixed
+	 */
 	var $Height ;
+	/**
+	 * Name of the toolbar to load
+	 *
+	 * @var string
+	 */
 	var $ToolbarSet ;
+	/**
+	 * Initial value
+	 *
+	 * @var string
+	 */
 	var $Value ;
+	/**
+	 * This is where additional configuration can be passed
+	 * Example:
+	 * $oFCKeditor->Config['EnterMode'] = 'br';
+	 *
+	 * @var array
+	 */
 	var $Config ;
 
-	// PHP 4 Constructor
+	/**
+	 * Main Constructor
+	 * Refer to the _samples/php directory for examples.
+	 *
+	 * @param string $instanceName
+	 */
 	function FCKeditor( $instanceName )
 	{
@@ -49,4 +94,8 @@
 	}
 
+	/**
+	 * Display FCKeditor
+	 *
+	 */
 	function Create()
 	{
@@ -54,4 +103,9 @@
 	}
 
+	/**
+	 * Return the HTML code required to run FCKeditor
+	 *
+	 * @return string
+	 */
 	function CreateHtml()
 	{
@@ -62,5 +116,5 @@
 		if ( !isset( $_GET ) ) {
 			global $HTTP_GET_VARS ;
-		    $_GET = $HTTP_GET_VARS ;
+			$_GET = $HTTP_GET_VARS ;
 		}
 
@@ -104,4 +158,9 @@
 	}
 
+	/**
+	 * Returns true if browser is compatible with FCKeditor
+	 *
+	 * @return boolean
+	 */
 	function IsCompatible()
 	{
@@ -109,4 +168,10 @@
 	}
 
+	/**
+	 * Get settings from Config array as a single string
+	 *
+	 * @access protected
+	 * @return string
+	 */
 	function GetConfigFieldString()
 	{
@@ -132,4 +197,12 @@
 	}
 
+	/**
+	 * Encode characters that may break the configuration string
+	 * generated by GetConfigFieldString()
+	 *
+	 * @access protected
+	 * @param string $valueToEncode
+	 * @return string
+	 */
 	function EncodeConfig( $valueToEncode )
 	{
Index: /FCKeditor/trunk/fckeditor_php5.php
===================================================================
--- /FCKeditor/trunk/fckeditor_php5.php	(revision 1576)
+++ /FCKeditor/trunk/fckeditor_php5.php	(revision 1577)
@@ -28,14 +28,59 @@
 class FCKeditor
 {
-	var $InstanceName ;
-	var $BasePath ;
-	var $Width ;
-	var $Height ;
-	var $ToolbarSet ;
-	var $Value ;
-	var $Config ;
-
-	// PHP 5 Constructor (by Marcus Bointon <coolbru@users.sourceforge.net>)
-	function __construct( $instanceName )
+	/**
+	 * Name of the FCKeditor instance
+	 *
+	 * @access protected
+	 * @var string
+	 */
+	public $InstanceName ;
+	/**
+	 * Path to FCKeditor relative to the document root
+	 *
+	 * @var string
+	 */
+	public $BasePath ;
+	/**
+	 * Width of the FCKeditor
+	 * Examples: 100%, 600
+	 *
+	 * @var mixed
+	 */
+	public $Width ;
+	/**
+	 * Height of the FCKeditor
+	 * Examples: 400, 50%
+	 *
+	 * @var mixed
+	 */
+	public $Height ;
+	/**
+	 * Name of the toolbar to load
+	 *
+	 * @var string
+	 */
+	public $ToolbarSet ;
+	/**
+	 * Initial value
+	 *
+	 * @var string
+	 */
+	public $Value ;
+	/**
+	 * This is where additional configuration can be passed
+	 * Example:
+	 * $oFCKeditor->Config['EnterMode'] = 'br';
+	 *
+	 * @var array
+	 */
+	public $Config ;
+
+	/**
+	 * Main Constructor
+	 * Refer to the _samples/php directory for examples.
+	 *
+	 * @param string $instanceName
+	 */
+	public function __construct( $instanceName )
  	{
 		$this->InstanceName	= $instanceName ;
@@ -49,10 +94,19 @@
 	}
 
-	function Create()
+	/**
+	 * Display FCKeditor
+	 *
+	 */
+	public function Create()
 	{
 		echo $this->CreateHtml() ;
 	}
 
-	function CreateHtml()
+	/**
+	 * Return the HTML code required to run FCKeditor
+	 *
+	 * @return string
+	 */
+	public function CreateHtml()
 	{
 		$HtmlValue = htmlspecialchars( $this->Value ) ;
@@ -99,10 +153,21 @@
 	}
 
-	function IsCompatible()
+	/**
+	 * Returns true if browser is compatible with FCKeditor
+	 *
+	 * @return boolean
+	 */
+	public function IsCompatible()
 	{
 		return FCKeditor_IsCompatibleBrowser() ;
 	}
 
-	function GetConfigFieldString()
+	/**
+	 * Get settings from Config array as a single string
+	 *
+	 * @access protected
+	 * @return string
+	 */
+	public function GetConfigFieldString()
 	{
 		$sParams = '' ;
@@ -127,5 +192,13 @@
 	}
 
-	function EncodeConfig( $valueToEncode )
+	/**
+	 * Encode characters that may break the configuration string
+	 * generated by GetConfigFieldString()
+	 *
+	 * @access protected
+	 * @param string $valueToEncode
+	 * @return string
+	 */
+	public function EncodeConfig( $valueToEncode )
 	{
 		$chars = array(
