Fixing documentation and minor bug in stereotype mode