use code style from main library in nnjm example + remove

comment around try/catch in nnjm main.