Fixed an bug causing smoothing to fail when data was binned in such a way that some bins contained only a single row; removed sample Matlab matrix used in original implementation.