Add test for strain estimation (only basic version).
Some code refactoring to improve code quality.
closes #147. part of #64. part of #68.