1.Fixed memory size error.
2.Fixed infinite loop in mem_erase().
Add software design document(not complete).