Issue #1

Added proper storage of exit code, error, output, pid.