fix some issues with hal and modernize a bit
add missing files
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.