Fixes errno setting using bithacks and updates TODOs
Merge pull request #4 from griera/master

Fixes errno setting using bithacks and updates TODOs