update for 1D
Merge pull request #10 from zhenhu/master

update for 1D