Rewrote (most) code

Removed useless settings