Got the parser done

This includes the final parser and return values for tag and index bits.
This also has the base 10 to base 2 converter.