Added some more documentation

DocBlocks to all major functions.
hope it helps...
Merge pull request #21 from liranbg/sagi_dev

Added some more documentation