Updated lots of code. Almost everything is doucmented now. Added a phpdoc too.
Install script has been added.