Added docblocks and updated documentation