Better docs, a couple of new functions