Removed 'pad' parameter, replaced with 'nfft'

replaced "pad" with 'nfft', and added check to make sure nfft >= number of time points. 

everything seems to run OK on my computer.