Finally wrote some documentation.