Changed the name of test_data.txt-> test_structure.xyz and cleaned up a few bugs