energyvec functions and basic morlet function added