Add gain functions.  Also, change the style for figure placement.