Improvements on the graphics and random generators