Headway variation 3a complete
Fixed errors in database writing for variant 3a. Output verified as correct and distinct from 4a.