Iss 71

For #71.

Added logs for backend.
Code should be the error: 0 if success, 1 if failed