clang format
remove unused function
remove used of backward compat functionality

it is now automatic
fix bonds example
improve motion example