I dont think that the returned id is a problem if an error occures. The gompd lib handles errors, when they occur and ignore the returned id, but i can do that, if you want.

Documentation is on its way.