code cleanup, api unification between 1d and 2d
updated notebooks with new 1d api