update to SDReader for doc and improved tests