change all functions to period.sep naming style
rename `dist` to `rot.dist`, change all affected functions