fix debug & release build option
fix a few bugs in periodic functions
change particle position scaling into range [-1, 1]
final fix for periodic function
Merge branch 'dev/periodic_boundaries_fix' into master