added function to remove atoms in the file that are not part of the molecule, i.e. sodiums