Added code for settings management, also more code to the HexGrid control.