Main window rect now has usable position, and size upon startup

Added paranoid checks on the position, and size