fixes #13 golinted all the things
fixes #13 better error handling
fixes #13 tests for index.Put() error case