Changed readonly properties to be defined in the correct swift manner.