removed a surplus line
added tests
adjuested doc