Minor changes.
added file
cleaning 1d and 2d
cleaning 3d
add comments