refactor updateDimensions
fixed issue with defeault sine wave
fixed options reference issue and refactored
refactor and removed double references