implemented spectrum resampling
fixed issue with inserting and appending t_nodes