fixed two errors in the code for the calculation of the static structure factor (one of which I would have easily discovered if I had ever run it in debug mode -.- ...)