Periodic b.c. sanity check
Beautify; template no longer needed (can just use existing b.c.'s as starting point)
No more NaN's: allow periodic b.c. to function