updated document
defined a better architecture and wrote a plan about what changes need to be done to the current code