added ini file support and made force calculation more effective