Added option to create readonly attributes

Added option to Create readonly attributes.