Fixed and added some doc blocks.