Added some comments.
Added some more unit tests for half utils
Updated formatting.