Added init routines that take bundles
Fixed warnings.
Merge pull request #38 from rhoiberg/nserror

Nserror