Split layout + state of RagePixel window to separate classes + major cleanup of format