Update diary.md
some refactoring
better physics
updated diary