Address concerns raised during review:

* Fix test setup to be more valid
* Fix some specs
* Move idx_type to get core
* Remove w_fail_threshold
* erlang:max() -> lists:max()
* Switch error tuples to always be 2-tuples
* Update comment about meeting PR