Periodic boundaries

A few small cosmetic changes, plus a test file for _otp_bulk.py and a fix to the periodic mindist routine which wasn't aligning properly.