Added stat page and layout.
Bug fixes to the engine