added save sink (closes #61)
various R check fixes