Adding parameter parsing when adding graphs.

Fixes #8