Some refactoring plus style update, and typo correction
EOL
Comments update
Fixed compiler warning CS1911
Merge pull request #27 from scott-xu/master

Some refactoring, style update, and typo correction