minor pep8 fix
refactored functions analysis functions to make more generally applicable
added a windowing argument for consistency with MATLAB with code
added to flow charactaristics