Energy and effective damping calculations working

* Improved magnetic parameters storage
  use a class instead of dictionary