Conversion to use OOP in the function..

Now it's easy, really :P
Changed documentation

Changed documentation to follow the updates in the script
Just apply a correction to the style of script 

Nothing more than this.
Merge pull request #2 from fjorgemota/patch-1

Changed code to be OOP instead of Function.