Made the main function much more readable.

Also updated server to include a multiverse size endpoint.