fixed bug in mtplottools in get_period, now _freq is the only local parameter to avoid mixing of freq and period