Implement strcpy, fix persistent storage issues