changed structure, added doc (writeup work)