unified errors
added resource model
integrated tests into npm