Ditto to Insinuasian.
the little worms are planaria.
they live in almost all healthy tanks but get outta controll when the nutrients in your tank get to high, Wich is mostley coused by over feeding, Do a good gravel vac and cut back on feeding a little bit and they should go down in numbers.