Added id32 method and unittest

I think I did it right this time.