added checking
updated docs