Fixed issue with duplicate use statements and added return after NS line

Fixed issue with duplicate use statements and added return after namespace decleration