fixed comment counts and added identifiers for threads