Rewrote most of the slider to make it more useful

Also some more code cleanups