Added function inspect and docs for it.