use code style from main library in nnjm example + remove
comment around try/catch in nnjm main.
Merge pull request #8 from jmp84/mainLibraryStyle

use code style from main library in nnjm example + remove