Gear layout fixing
Added debugging howto