start documenting the mistnet function