Feature/cleanup

This PR is for general code cleanup.

- [x] moved Slider into it's own file.
- [x] removed some unnecessary code and comments.