added attr_acessors + documentation