generate debug symbols
removeExtendedAttr method
tidy and comments