Convert to UNIX-style line endings.
Fix exception handler.
Merge pull request #1 from NewbieSone/master

Fix line ending style, syntax error