adjusted memory structure, added input washing, added support for chunking and tokenizing, need to implement