Did it's skin appear to be moist? Did you notice how it was breathing? How damp/dry is the substrate? Has it's water bowl been very messy on a constant basis? Is the water you are using in it's bowl dechlorinated?

The scared part of it jumping at the glass would suggest stress.

The little chunks of feces you notice are just because you are using earthworms, that is perfectly normal, big harder feces is normally when you are feeding something with an exoskeleton.