Wrote documentation for mod