Update

Improved argument handling and documentation. Added sal_extractdi.