Updated documentation. More comments.