added current calculate variance function

will add load structure file dialog soon