Added option to choose different random starting configurations, corrected stress tensor calculation