added docs, see #40