Updated some documentation on the algorithms