Add attr_readers and remove instance variables where unnecessary. Make styling changes.