It could be possible that your swordtail is a platy-sword hybrid, as the 2 species easily interbreed. To cut down on the chasing, add some plants to give the platy some cover to hide in.
Lastly, as BerryAttack said, you need to do a fish-in cycle on your tank. You can read up on it from the...