Implemented handling of class stereotypes mutable and immutable.

Minor refactoring of class parsing.