Some stuff
added corner check
Merge pull request #13 from zgao/master

awfagvew