Changed get_info to return Result and made sample_format method public.

...Closes #27. Closes #28