sparse-map tests
add matrix join function to API
doc tidying