added warnings(), updated docs related