Fix code smells. Remove unusued function. Ensure that the included_once files are not necessarily needed (but are loaded if the parameters are not provided for backwards compatibility). Change file header to be PHPDocumentor compliant. General code cleanup and commenting.