added dump method, updated tests and docs