improve warnings and messages
add optimizeSize option for makeDeclaration
id rename implemented
base class create matching and resolve improvements