Did you twist the loose hair around the previously locked hair?
Anyways, locks go through stages, baby stage, teenage stage and the mature stage. Everyone that had locks had a "not so good stage" in one way or another. I know lots of people with locs. As they grow they get better.
How do they look nasty? i'm sure if you are cleaning them then they are clean, right?