Output sparse files, closes #13