adding error code returns to relevant functions
switching to returning error_codes directly
adding constructors, simplifying return, changing to pointer, adding null for default argument
Removing line that's not being used.
Merge pull request #429 from ros-planning/error_codes_minimal

Changing API to return error codes (bool return value will also work)