Add 'last' C function
Add tests for last_
Use last() in C functions
Re-document
Add empty check functions