Safe data parameter
Added write memory command
Implemented write memory command
Implemented error codes