Added a menu to the default controller action.
Fixed some errors in the installation logic.
Made sure stat references get created on installation.