Fix parsing of hexadecimal numbers.
Add target checking and error catching.
Fix StyleCop violation of missing documentation header.