added missing brackets and ending
added ability to stop when dst is reached
changed defaults to remove oscillation