Added some documentation, for good measure

Sorter is not documented because it is about to be written from scratch