clean imports (only one of each) and add segment comments

only import everything once (line based check) and add some comments for each section