Edited getVSWR function and tested. Working!