Bug fixes, improved functionality

bug fixes and improved functionality for align_timeseries.
1. Added threshold based realignment
2. Expanded help file
3. Fixed bugs when Y precedes X.
bug fixes and comments to portaudio_playrec

Altered conditions for terminating recording to compensate for audio
device initiation time and also predicted latency. Still needs work, but
empirically seems to be working well.