refactored and added comments to waterline dictionary building logic
refactored and added comments to waterline dictionary building logic

3032441712/waterline,AlexisNo/waterline,antoniopol06/waterline,particlebanana/waterline,listepo/waterline,tjwebb/waterline,scippio/waterline,Atlantis-Software/waterline,mcanthony/waterline,moklick/waterline,mmiller42/waterline,balderdashy/waterline,dmarcelino/waterline,luislobo/waterline,jonniedeb/waterline,citizenken/waterline,Zaggen/waterline,metidia/waterline,Atlantis-Software/offshore,kriswill/waterline,contra/waterline,hippich/waterline,ctartist621/waterline,jianpingw/waterline,waterlinejs/waterline,atiertant/offshore