Merge pull request #118 from nwin/master

Added convenience function to save a buffer
Merge commit '350eb0689b0eec978729fd41bbb0bbe93df6243f'