#6 resolved. added try catch.
#7 resolved. added --debug option.
Merge pull request #8 from joola/develop

#6, #7 resolved.