Update docs, add functionality to get_lastfunction_header per @devdave