Fixed bug in calculating average sample rate (off by one error)
Fixed bug allowing buttons to grow when frame size changes and improper sash gravity due to wx3.0 change