Fixed a lot of NullPointerExceptions. Ranks now work. Config works also.