They (stat) are normaly set when you move them or use your alt key. Even when you cant id them yet. It is said, not proven, that the longer you wait to id them the better they get. This is nor proven because stats are RANDOM. No they dont regard to class or level.