the first pic looks like a shrimp, but I don't know.
The second pic is definately a flatworm. Do a search for flatworms. I read a lot on them and really got conflicting views, The best I got was red flatworms are bad and white ones are ok. I never did find out the difference. If I remember, Six line wrasses and some nudibranch's will eliminate them. matt