Removed redundant if statements in inverse_transform, revised line for detecting uniques other than 1 and 0, and changed deprecation warnings