Changed attr_writer to attr_accessor and added 3 spec examples including Travis CI yml