changed some things from data frame to list (would have caused a bug)
added mean distance plots