Merge pull request #4 from xspider/master

sync master
standard errors fixed
add test cases for view
Merge pull request #13 from miller/master

test cases for view