sg: Fix spelling of length
sg: Add comments
uart: Major rework