added some stuff
added function to create freq vector from min/max period