Fix a number of unsafe operations (mostly forced unwrapping)
moved 'let stderr' into if-let statement
Merge pull request #15 from jpsim/jp-fix-unsafe-operations

Fix a number of unsafe operations (mostly forced unwrapping)