renamed port variable
Reformatted
Fixed indent
refactored variables