Add full documentation of the class and it usage.
minor changes on the class.
rename index.php to the class containing name
create test.php as an example of usage.