Add MD analysis
Improve it
Add few integer overflow checks
Calculate D
Implement PBC
Update notebook