create closer object to ensure requests object is closed;
minor comment fix
indent fix
add testing for svg functionality
add alert box to test what happen with android
javescript does not have optional argument on older browser, so remove, and remove some testing alert boxes
refactor wave functions so I can put substitude alternative peak finding algorithm