Added some more documentation

DocBlocks to all major functions.
hope it helps...