Change API for the better

When I actually tried to use this library, I had to repeat the code for binary and decimal prefixes because they were different types. No longer!