added correct form of structure factor
refactored plot.py