Fixed some bugs and made Settings static

Signed-off-by: Northcode <northcode.no@gmail.com>