Cleanup in adk_write
Added adk_read function