Output error and skip adding nodes in error cases.

When methods cannot be reflected from a class no nodes should be
created. This avoids warnings and notice errors.

Fixes #24
Add composer.json file.