Documentation updates and some extension functions